<body >
<style>
.lostpassword a:visited{ color:#2bb2a3}
#content .head{
	text-align:center;
	background:#FFF;
	border-bottom:1px solid #d8d8d6;}
.field{
	padding:6px 10px;
	border-bottom:1px solid #d8d8d6;}
.act{
	padding:5px 0px 0px 30px}
.act .formbutton{
	padding:5px;}
.box-content input{border:none;box-shadow:none;}
</style>

<header class=" ">
  <h1>账户信息修改 •
    <a href="javascript:history.back()">
    <label gaevent="InnerLink|Click|touch/back">返回</label>
    </a>
  </h1>
</header>
<!--{include wap_header}-->
<!--${$notice = Session::Get('notice', true)}-->
<!--{if $notice}-->
<p id="okMsg" >{$notice}</p>
<!--{/if}-->
<!--${$error = Session::Get('error', true)}-->
<!--{if $error}-->
<p id="okMsg"  >{$error}</p>
<!--{/if}-->
<section>
    <div id="content" class="clear settings-box">
    <div class="head"><h1 style="font-size:18px;">账户信息修改</h1></div>
		<div class="box clear" style="margin:0;">
            <div class="box-content">
                <div class="sect">
                    <form id="settings-form" method="post" action="/wap/settings.php" enctype="multipart/form-data" class="validator">
						<div style="width:100%;height:12px; background-color:#f8f8f8;"></div>
						<div style="background:#FFF;">
                        <div class="wholetip clear"><h3>1、基本信息</h3></div>
                        <div class="field" style="overflow:hidden">
						 	<div style="width:80%;float:left">
								<label>头像</label>
								<input style="max-width:200px;" type="file" size="30" name="upload_image" id="settings-avatar" /><br/>
								<span class="hint">请上传 512KB 以内的个人肖像图片</span>
							</div>
							<!--{if $login_user['avatar']}-->
							<span  style=" width:18%; min-width:48px;height:48px;border-radius:50%;float:left; margin-left:2%;"><img src="${user_image($login_user['avatar'])}"/></span>
							<!--{/if}-->
                        </div>
						<div class="field email">
                            <label style="letter-spacing:4px;">Email：</label>
                            <!--<input type="text" name="mobile" id="reset-email" class="common-mobile"  value="" maxlength="12" placeholder="请输入手机号码"/><br/>-->
                            <input type="text" size="30" name="email" id="settings-email-address" class="f-input "  value="{$login_user['email']}"  require="true" datatype="email"   msg="Email为空或格式不正确"/>
                        </div>
						 
                        <div class="field username">
                            <label style="letter-spacing:4px;">用户名：</label><!--{$readonly['username']}  disabled="disabled"-->
                            <input type="text" size="30" name="username" id="settings-username" class="f-input {$readonly['username']}" value="{$login_user['username']}" require="true" datatype="limit" min="2" max="16" maxLength="16"  />
                        </div>
                        <div class="field password">
                            <label>当前密码：</label>
                            <input type="password" size="30" name="oldpassword" id="settings-password-old" /><br/>
                            <span class="hint">修改帐户设置请输入当前密码</span>
                        </div>
                        <div class="field password">
                            <label>更改密码：</label>
                            <input type="password" size="30" name="password" id="settings-password" /><br/>
                            <span class="hint">如果您不想修改密码，请保持空白</span>
                        </div>
                        <div class="field password">
                            <label>确认密码：</label>
                            <input type="password" size="30" name="password2" id="settings-password-confirm" />
                        </div>
                        <div class="field password">
                            <label style="letter-spacing:14px;">性别：</label>
							<select name="gender" class="f-city">${Utility::Option($option_gender, $login_user['gender'])}</select>
                        </div>
                        </div>
						<div style="width:100%;height:12px; background-color:#f8f8f8;"></div>
                        <div style="background:#FFF;">
						<div class="wholetip clear"><h3>2、联系信息</h3></div>
						<!--{if ($INI['sms']['bind']=='1')}-->
						<div class="field mobile">
							<label>手机号码：</label>
							<input type="text" size="30" name="mobile" id="settings-mobile" class="number" value="{$login_user['mobile']}" readonly /><br/>
                            <span class="inputtip" require="true"><a href="javascript:;" onClick="bindmobile();"><font color="red"><b><!--{if !empty($login_user['mobile'])}-->重新绑定<!--{else}-->绑定手机<!--{/if}--></b></font></a>&nbsp;&nbsp;&nbsp;&nbsp;手机号码是我们联系你的最重要的联系方式</span>
						</div>
						<script type="text/javascript">
						function bindmobile() {
							var mobile = trim(jQuery('#settings-mobile').val());
							X.get(WEB_ROOT + '/ajax/sms.php?action=bindmobile&mobile='+mobile+'&r='+ Math.random());
						}

						function trim(str) {
							return str.replace(/^\s*(.*?)[\s\n]*$/g, '$1');
						}
						</script>
						<!--{else}-->
						<div class="field mobile">
                            <label>手机号码：</label>
                            <input type="text" size="30" name="mobile" id="settings-mobile" class="number" value="{$login_user['mobile']}" require="${option_yes('needmobile')?'true':'require'}" datatype="mobile|ajax" url="{$WEB_ROOT}/ajax/validator.php" vname="signupmobile"  msg="手机格式不对|手机号码已经被使用" /><br/>
                            <span class="inputtip">手机号码是我们联系您最重要的方式，请准确填写</span>
                        </div>
						<!--{/if}-->
                        
                        <div class="field password">
                            <label>QQ号码：</label>
                            <input type="text" size="30" name="qq" id="settings-qq" class="number" value="{$login_user['qq']}" />
                        </div>
						<div class="field city">
                            <label>所在城市：</label>
							<select name="city_id" class="f-city">${Utility::Option(Utility::OptionArray($allcities, 'id', 'name'), $login_user['city_id'])}<option value='0'>其他</option></select>
                        </div>
                        </div>
						<div style="width:100%;height:12px; background-color:#f8f8f8;"></div>
                        <div style="background:#FFF;">
						<div class="wholetip clear"><h3>3、派送信息</h3></div>
                        <div class="field username">
                            <label>真实姓名：</label>
                            <input type="text" size="30" name="realname" id="settings-realname" value="{$login_user['realname']}" /><br/>
							<span class="hint">真实姓名请与有效证件姓名保持一致，便于收取物品</span>
                        </div>
                        <div class="field username">
                            <label>收件地址：</label>
                            <input type="text" size="30" name="address" id="settings-address" value="{$login_user['address']}" /><br/>
                            <span class="hint">为了能及时收到物品，请按照格式填写：_省_市_县（区）_</span>
                        </div>
						                        <div class="field">
                            <label>邮政编码：</label>
                            <input type="text" maxLength=6 size="10" name="zipcode" id="settings-zipcode" class="f-input number" value="{$login_user['zipcode']}" />
                        </div>
                        <div class="clear"></div>
                        <div class="act">
                            <input type="submit" value="确定更改" name="commit" id="settings-submit" class="formbutton2"/>
                        </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>

<!--{include wap_footer}-->
